<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="box1">你好吗</div>
</body>
<script>
    document.getElementById("box1").innerHTML = "我很好";
    document.getElementById("box1").style.color = "red";
    document.getElementById("box1").style.backgroundColor="yellow"
</script>
<noscript>抱歉，您的浏览器不支持 JavaScript！</noscript>
</html>